/*    */ package com.qmsk.business.manage.function.controller;
/*    */ 
/*    */ import com.qmsk.business.manage.function.dao.FunctionDAO;
/*    */ import com.utils.gson.out.GsonEbRst;
/*    */ import com.utils.web.RequestUtils;
/*    */ import com.utils.web.ResponseUtils;
/*    */ import java.sql.SQLException;
/*    */ import javax.servlet.http.HttpServletRequest;
/*    */ import javax.servlet.http.HttpServletResponse;
/*    */ import org.apache.log4j.Logger;
/*    */ import org.springframework.beans.factory.annotation.Autowired;
/*    */ import org.springframework.stereotype.Controller;
/*    */ import org.springframework.web.bind.annotation.PathVariable;
/*    */ import org.springframework.web.bind.annotation.RequestMapping;
/*    */ 
/*    */ @Controller
/*    */ @RequestMapping({"/func"})
/*    */ public class FunctionController
/*    */ {
/* 24 */   private static final Logger logger = Logger.getLogger(FunctionController.class);
/*    */ 
/*    */   @Autowired
/*    */   private FunctionDAO dao;
/*    */ 
/*    */   @RequestMapping(value={"find/shopId/{shopId}/root"}, method={org.springframework.web.bind.annotation.RequestMethod.GET})
/*    */   public void getListOfRoot(HttpServletRequest request, HttpServletResponse response) {
/*    */     try {
/* 32 */       GsonEbRst gsonEbRst = this.dao.getGsonOfRoot();
/* 33 */       ResponseUtils.setResponseResult(gsonEbRst, response);
/*    */     } catch (SQLException e) {
/* 35 */       ResponseUtils.setErrorMsgResponse(
/* 36 */         RequestUtils.getFindDataErrorMessage(request), response);
/* 37 */       logger.error(e);
/*    */     }
/*    */   }
/*    */ 
/*    */   @RequestMapping(value={"find/shopId/{shopId}/pId/{pId}"}, method={org.springframework.web.bind.annotation.RequestMethod.GET})
/*    */   public void getListOfParentId(HttpServletRequest request, HttpServletResponse response, @PathVariable("pId") String pId)
/*    */   {
/*    */     try {
/* 45 */       GsonEbRst gsonEbRst = this.dao.getGsonOfParentId(pId);
/* 46 */       ResponseUtils.setResponseResult(gsonEbRst, response);
/*    */     } catch (SQLException e) {
/* 48 */       logger.error(e);
/* 49 */       ResponseUtils.setErrorMsgResponse(
/* 50 */         RequestUtils.getFindDataErrorMessage(request), response);
/*    */     }
/*    */   }
/*    */ }

/* Location:           C:\Users\Administrator\Desktop\新建文件夹\WEB-INF\classes\
 * Qualified Name:     com.qmsk.business.manage.function.controller.FunctionController
 * JD-Core Version:    0.5.3
 */